package pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;
import service.Document;

/**
 * Created by zuoxiao
 * on 2019/6/26.
 */

@Component("Examination")
@Primary
public class Examination implements Document {
    @Value("170")
    private int height;
    @Value("65")
    private int weight;

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    @Override
    public void getDocumentName() {
        System.out.println("Examination");
    }
}
